package com.qianyue.decorator;

/**
 * 鸡蛋
 *
 * @author qian yue
 * @version v1.0.0
 * @since 2025/2/3 19:29
 */
public class Egg extends Garnish {

    public Egg(FastFood fastFood) {
        super(fastFood.getDescription() + "+鸡蛋", 1, fastFood);
    }

    @Override
    public int cost() {
        return getFastFood().cost() + getPrice();
    }
}
